refreshtoken
Obtener un token de acceso para autorizar el acceso a las Apis usando el token de refresco.
/api/auth/refreshtoken
Usage and SDK Samples
curl -X POST\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"https://pcabackend.infomediaservice.online:9000/api/auth/refreshtoken"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AutenticacionApi;
import java.io.File;
import java.util.*;
public class AutenticacionApiExample {
public static void main(String[] args) {
AutenticacionApi apiInstance = new AutenticacionApi();
TokenRefreshRequest body = ; // TokenRefreshRequest |
try {
TokenRefreshResponse result = apiInstance.refreshtoken(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AutenticacionApi#refreshtoken");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AutenticacionApi;
public class AutenticacionApiExample {
public static void main(String[] args) {
AutenticacionApi apiInstance = new AutenticacionApi();
TokenRefreshRequest body = ; // TokenRefreshRequest |
try {
TokenRefreshResponse result = apiInstance.refreshtoken(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AutenticacionApi#refreshtoken");
e.printStackTrace();
}
}
}
TokenRefreshRequest *body = ; //
AutenticacionApi *apiInstance = [[AutenticacionApi alloc] init];
// Obtener un token de acceso para autorizar el acceso a las Apis usando el token de refresco.
[apiInstance refreshtokenWith:body
completionHandler: ^(TokenRefreshResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var PcaApi = require('pca_api');
var api = new PcaApi.AutenticacionApi()
var body = ; // {{TokenRefreshRequest}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.refreshtoken(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class refreshtokenExample
{
public void main()
{
var apiInstance = new AutenticacionApi();
var body = new TokenRefreshRequest(); // TokenRefreshRequest |
try
{
// Obtener un token de acceso para autorizar el acceso a las Apis usando el token de refresco.
TokenRefreshResponse result = apiInstance.refreshtoken(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AutenticacionApi.refreshtoken: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAutenticacionApi();
$body = ; // TokenRefreshRequest |
try {
$result = $api_instance->refreshtoken($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AutenticacionApi->refreshtoken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AutenticacionApi;
my $api_instance = WWW::SwaggerClient::AutenticacionApi->new();
my $body = WWW::SwaggerClient::Object::TokenRefreshRequest->new(); # TokenRefreshRequest |
eval {
my $result = $api_instance->refreshtoken(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AutenticacionApi->refreshtoken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AutenticacionApi()
body = # TokenRefreshRequest |
try:
# Obtener un token de acceso para autorizar el acceso a las Apis usando el token de refresco.
api_response = api_instance.refreshtoken(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AutenticacionApi->refreshtoken: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| body * |